﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace ASEPMainProgram.Entities.MainFrame
{
    /// <summary>
    /// 树结构实体
    /// </summary>
    public class GroupTreeEntity
    {
        /// <summary>
        /// 树id
        /// </summary>
        [Key]
        [Column(TypeName = "varchar(32)")]
        public string TreeGuid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column(TypeName = "varchar(256)")]
        public string TreeName { get; set; }
        /// <summary>
        /// 树结构
        /// </summary>
        [Column(TypeName = "text")]
        public string TreeContext { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        [Column(TypeName = "varchar(32)")]
        public string CreateBy { get; set; }
        /// <summary>
        /// 注册组ID
        /// </summary>
        [Column(TypeName = "varchar(32)")]
        public string RegGroupId { get; set; }
    }


    /// <summary>
    /// 
    /// </summary>
    public enum TreeNodeType
    {
        /// <summary>
        /// 注册组
        /// </summary>
        RegGroup = 1,
        /// <summary>
        /// 节点组
        /// </summary>
        ManageGroup = 2,
        /// <summary>
        /// 项目
        /// </summary>
        Item = 3,
        /// <summary>
        /// 未分组
        /// </summary>
        Extra = 4,
    }
}
